import time
from selenium.webdriver.remote.webdriver import WebDriver
from psa.log import logger
from psa.keywords.selenium.Browser import BaseBrowser
from psa.keywords.selenium.Element import BaseElement
from psa.keywords.database.MysqlClient import MysqlClient


class BasePage(BaseBrowser, BaseElement, MysqlClient):

    def __init__(self, driver: WebDriver):
        super().__init__(driver)
        self.driver = driver
        self.logger = logger
        

    def sleep(self, sec: float) -> None:
        time.sleep(sec)